#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#include <QTcpServer>//监听套接字
#include <QTcpSocket>//通信套接字
#include <QMessageBox>
#include<sqlexe.h>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
private:
    QTcpServer *tcpServer;
    QTcpSocket *tcpSocket;
    QString mport="8888";

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_pushButton_closewin_clicked();

    void on_pushButton_start_clicked();

    void on_pushButton_sql_clicked();

    void on_pushButton_close_clicked();

    void read_client_data();

    void client_dis();

    void new_client();

private:
    Ui::MainWindow *ui;
    sqlexe* sql;
};

#endif // MAINWINDOW_H
